package com.tinem.platform.module.commons.util;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className PasswordUtil
 * @description TODO
 * @site 
 * @company 
 * @create 2020-09-03 15:57
 */
public class PasswordUtil {

    public static String encode(CharSequence rawPassword) {
        return new Digester(DigestAlgorithm.SHA512).digestHex(rawPassword.toString());
    }
}
